package edu.jsnu.service.ticket.user.service;

import beans.PageQuery;
import edu.jsnu.service.ticket.user.domain.User;
import edu.jsnu.service.ticket.user.dto.UserDto;

import java.util.List;

public interface UserService {
    List<UserDto> getAllUser(PageQuery pageQuery);

    User getUserInfoById(Integer userId);

    User getUserInfoByName(String userName);

    Integer saveUser(User user);

    Integer delUser(Integer userId);

    Integer batchDel(Integer[] ids);

    Integer register(String userName, String password);

}
